Charge.fromJson constructor
Implementation
factory Charge.fromJson(Map<String, dynamic> json) {
if (json['object'] != 'charge') {
throw InvalidResourceException(
'The resource object should be "source": $json ');
}
return _$ChargeFromJson(json);
}