fromJson method
Implementation
@override
PaymentMethodRef<T> fromJson(dynamic json) {
if (json is String)
return PaymentMethodRef<T>.id(json);
else
return PaymentMethodRef<T>.none();
}
@override
PaymentMethodRef<T> fromJson(dynamic json) {
if (json is String)
return PaymentMethodRef<T>.id(json);
else
return PaymentMethodRef<T>.none();
}