import 'package:json_annotation/json_annotation.dart'; part 'base.g.dart'; @JsonSerializable() class PaymentBaseRequest { final String idempotencyKey; final Map? metadata; const PaymentBaseRequest({ required this.idempotencyKey, this.metadata, }); factory PaymentBaseRequest.fromJson(Map json) => _$PaymentBaseRequestFromJson(json); Map toJson() => _$PaymentBaseRequestToJson(this); }