fromJson static method

ResetStatusSeriesModel fromJson(
  1. dynamic value
)

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

Implementation

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