CustomerCreateFundingInstructionsOptions.fromJson constructor
CustomerCreateFundingInstructionsOptions.fromJson(
- Object? json
Implementation
factory CustomerCreateFundingInstructionsOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CustomerCreateFundingInstructionsOptions(
bankTransfer: CustomerBankTransfer.fromJson(map['bank_transfer']),
currency: (map['currency'] as String),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}