LocalModel.fromJson constructor
The fromJson method is used to convert a JSON object to a LocalModel.
Implementation
factory LocalModel.fromJson(Map<String, dynamic> json) {
return LocalModel(
time: DateTime.parse(json['time'] as String),
model: json['model'] as String?,
);
}