fromJson method
Deserializes the JSON data to the model.
Parameters:
json
: The JSON data to deserialize.
Implementation
@override
void fromJson(json) {
super.fromJson(json);
if (json is Map<String, dynamic>) {
if (json.containsKey("displayName") &&
json["displayName"] is String &&
json["displayName"].isNotEmpty &&
name.value.isEmpty) {
name.value = json["displayName"];
}
}
}