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