fromJson method

  1. @override
PaymentMethodRef<T> fromJson(
  1. dynamic json
)

Implementation

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