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