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