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