elCaribe app - customization and branding
This commit is contained in:
11
news-app/lib/data/models/LiveStreamingModel.dart
Normal file
11
news-app/lib/data/models/LiveStreamingModel.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:news/utils/strings.dart';
|
||||
|
||||
class LiveStreamingModel {
|
||||
String? id, image, title, type, url, updatedDate;
|
||||
|
||||
LiveStreamingModel({this.id, this.image, this.title, this.type, this.url, this.updatedDate});
|
||||
|
||||
factory LiveStreamingModel.fromJson(Map<String, dynamic> json) {
|
||||
return LiveStreamingModel(id: json[ID].toString(), image: json[IMAGE], title: json[TITLE], type: json[TYPE], url: json[URL], updatedDate: json[UPDATED_DATE]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user