TreasuryOutboundPaymentReturnOutboundPaymentOptions.fromJson constructor

TreasuryOutboundPaymentReturnOutboundPaymentOptions.fromJson(
  1. Object? json
)

Implementation

factory TreasuryOutboundPaymentReturnOutboundPaymentOptions.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryOutboundPaymentReturnOutboundPaymentOptions(
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    returnedDetails: map['returned_details'] == null
        ? null
        : OutboundPaymentReturnedDetails.fromJson(map['returned_details']),
  );
}