QuoteCreateOptionsTransferData.fromJson constructor
QuoteCreateOptionsTransferData.fromJson(
- Object? json
Implementation
factory QuoteCreateOptionsTransferData.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return QuoteCreateOptionsTransferData(
amount: map['amount'] == null ? null : (map['amount'] as num).toInt(),
amountPercent: map['amount_percent'] == null
? null
: (map['amount_percent'] as num).toDouble(),
destination: (map['destination'] as String),
);
}