LegalEntityPersonVerification.fromJson constructor

LegalEntityPersonVerification.fromJson(
  1. Object? json
)

Implementation

factory LegalEntityPersonVerification.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return LegalEntityPersonVerification(
    additionalDocument: map['additional_document'] == null
        ? null
        : LegalEntityCompanyVerificationDocument.fromJson(
            map['additional_document']),
    details: map['details'] == null ? null : (map['details'] as String),
    detailsCode:
        map['details_code'] == null ? null : (map['details_code'] as String),
    document: map['document'] == null
        ? null
        : LegalEntityPersonVerificationDocument.fromJson(map['document']),
    status: (map['status'] as String),
  );
}