24 lines
513 B
Dart
24 lines
513 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 = <String, dynamic>{};
|
|
data['id'] = id;
|
|
data['name'] = name;
|
|
data['type'] = type;
|
|
data['photo'] = photo;
|
|
return data;
|
|
}
|
|
} |