fromJson static method

ChangeOccurrenceTimeModel fromJson(
  1. dynamic value
)

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

Implementation

// ignore: prefer_constructors_over_static_methods
static ChangeOccurrenceTimeModel fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return ChangeOccurrenceTimeModel(
    from: mapDateTime(json, r'from', '')!,
    to: mapDateTime(json, r'to', '')!,
    seriesId: mapValueOfType<int>(json, r'seriesId')!,
  );
}