fromJson static method

NewVacationDayModel fromJson(
  1. dynamic value
)

Returns a new NewVacationDayModel instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static NewVacationDayModel fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return NewVacationDayModel(
    date: mapDateTime(json, r'date', '')!,
  );
}