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