fromJson static method

PassportElementIdentityCard? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static PassportElementIdentityCard? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PassportElementIdentityCard(
    identityCard: IdentityDocument.fromJson(
      tdMapFromJson(json['identity_card']),
    ),
  );
}