toMapAsIs method

  1. @override
Map<String, dynamic> toMapAsIs(
  1. NameModel? instance
)

Implementation

@override
Map<String, dynamic> toMapAsIs(NameModel? instance) {
  if (instance == null) {
    return <String, dynamic>{};
  }

  return <String, dynamic>{
    'id': instance.id,
    'individualClientReferenceId': instance.individualClientReferenceId,
    'givenName': instance.givenName,
    'familyName': instance.familyName,
    'otherNames': instance.otherNames,
    'nonRecoverableError': instance.nonRecoverableError,
    'tenantId': instance.tenantId,
    'rowVersion': instance.rowVersion,
    'additionalFields': instance.additionalFields,
  };
}