PersonDocuments.fromJson constructor

PersonDocuments.fromJson(
  1. Object? json
)

Implementation

factory PersonDocuments.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PersonDocuments(
    companyAuthorization: map['company_authorization'] == null
        ? null
        : PersonCompanyAuthorization.fromJson(map['company_authorization']),
    passport: map['passport'] == null
        ? null
        : PersonCompanyAuthorization.fromJson(map['passport']),
    visa: map['visa'] == null
        ? null
        : PersonCompanyAuthorization.fromJson(map['visa']),
  );
}