22 lines
500 B
Dart
22 lines
500 B
Dart
class InfoModel {
|
|
String? url;
|
|
String? title;
|
|
List<String>? description;
|
|
|
|
InfoModel({this.url, this.title, this.description});
|
|
|
|
InfoModel.fromJson(Map<String, dynamic> json) {
|
|
url = json['url'];
|
|
title = json['title'];
|
|
description = json['description'].cast<String>();
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['url'] = url;
|
|
data['title'] = title;
|
|
data['description'] = description;
|
|
return data;
|
|
}
|
|
}
|