fromJson static method
Returns a new ContactPersonModel instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static ContactPersonModel fromJson(dynamic value) {
if (value == null) return ContactPersonModel();
final json = value.cast<String, dynamic>();
return ContactPersonModel(
name: mapValueOfType<String>(json, r'name'),
phone: mapValueOfType<String>(json, r'phone'),
email: mapValueOfType<String>(json, r'email'),
);
}