fromJson static method
Returns a new PersonPatch instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static PersonPatch? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PersonPatch(
agreement: PersonPatchAgreement.fromJson(json[r'agreement']),
givenName: json[r'givenName'],
familyName: json[r'familyName'],
email: json[r'email'],
jobTitle: json[r'jobTitle'],
image: json[r'image'],
optIn: json[r'optIn'],
preferences: PersonPatchPreferences.fromJson(json[r'preferences']),
telephone: json[r'telephone'],
);
}