fromJson static method
Returns a new Schedule instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static Schedule fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return Schedule(
scheduleName: mapValueOfType<String>(json, r'ScheduleName'),
assetModelId: mapValueOfType<int>(json, r'AssetModelId'),
rows: Row.listFromJson(json[r'Rows']),
definitions: ColumnDefinition.listFromJson(json[r'Definitions']),
imported: mapValueOfType<bool>(json, r'Imported'),
);
}
return null;
}