PaymentMethodLink.fromJson constructor

PaymentMethodLink.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodLink.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodLink(
    email: map['email'] == null ? null : (map['email'] as String),
    persistentToken: map['persistent_token'] == null
        ? null
        : (map['persistent_token'] as String),
  );
}