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