You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
478 B
29 lines
478 B
3 years ago
|
/// name : "4"
|
||
|
/// number : 8
|
||
|
|
||
|
class MsgStats {
|
||
|
MsgStats({
|
||
|
String name,
|
||
|
int number,}){
|
||
|
_name = name;
|
||
|
_number = number;
|
||
|
}
|
||
|
|
||
|
MsgStats.fromJson(dynamic json) {
|
||
|
_name = json['name'];
|
||
|
_number = json['number'];
|
||
|
}
|
||
|
String _name;
|
||
|
int _number;
|
||
|
|
||
|
String get name => _name;
|
||
|
int get number => _number;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['name'] = _name;
|
||
|
map['number'] = _number;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|