24 lines
540 B
Dart
24 lines
540 B
Dart
class UsersMention {
|
|
int? id;
|
|
String? name;
|
|
String? type;
|
|
String? photo;
|
|
|
|
UsersMention({this.id, this.name, this.type, this.photo});
|
|
|
|
UsersMention.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
name = json['name'];
|
|
type = json['type'];
|
|
photo = json['photo'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['name'] = this.name;
|
|
data['type'] = this.type;
|
|
data['photo'] = this.photo;
|
|
return data;
|
|
}
|
|
} |