CardOwner.fromJson constructor

CardOwner.fromJson(
  1. Object? json
)

Implementation

factory CardOwner.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CardOwner(
    address: map['address'] == null
        ? null
        : AccountSupportAddress.fromJson(map['address']),
    email: map['email'] == null ? null : (map['email'] as String),
    name: map['name'] == null ? null : (map['name'] as String),
    phone: map['phone'] == null ? null : (map['phone'] as String),
  );
}