34 lines
850 B
Dart
34 lines
850 B
Dart
class Events {
|
|
int? id;
|
|
String? name;
|
|
String? description;
|
|
String? startDt;
|
|
int? user;
|
|
String? eventtype;
|
|
String? transmitted;
|
|
|
|
Events({this.id, this.name, this.description, this.startDt, this.user, this.eventtype, this.transmitted});
|
|
|
|
Events.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
name = json['name'];
|
|
description = json['description'];
|
|
startDt = json['startDt'];
|
|
user = json['user'];
|
|
eventtype = json['eventtype'];
|
|
transmitted = json['transmitted'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['id'] = id;
|
|
data['name'] = name;
|
|
data['description'] = description;
|
|
data['startDt'] = startDt;
|
|
data['user'] = user;
|
|
data['eventtype'] = eventtype;
|
|
data['transmitted'] = transmitted;
|
|
return data;
|
|
}
|
|
}
|