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