fromMap method

  1. @override
NameModel fromMap(
  1. Map<String, dynamic> map
)

Implementation

@override
NameModel fromMap(Map<String, dynamic> map) {
  return NameModel(
    id: map['id'] as String?,
    individualClientReferenceId:
        map['individualClientReferenceId'] as String?,
    givenName: map['givenName'] as String?,
    familyName: map['familyName'] as String?,
    otherNames: map['otherNames'] as String?,
    nonRecoverableError: map['nonRecoverableError'] as bool?,
    tenantId: map['tenantId'] as String?,
    rowVersion: map['rowVersion'] as int?,
    additionalFields: map['additionalFields'] as NameAdditionalFields?,
  );
}