SourceReceiverFlow.fromJson constructor
SourceReceiverFlow.fromJson(
- Object? json
Implementation
factory SourceReceiverFlow.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceReceiverFlow(
address: map['address'] == null ? null : (map['address'] as String),
amountCharged: (map['amount_charged'] as num).toInt(),
amountReceived: (map['amount_received'] as num).toInt(),
amountReturned: (map['amount_returned'] as num).toInt(),
refundAttributesMethod: (map['refund_attributes_method'] as String),
refundAttributesStatus: (map['refund_attributes_status'] as String),
);
}