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 json) { id = json['id']; name = json['name']; description = json['description']; startDt = json['startDt']; user = json['user']; eventtype = json['eventtype']; transmitted = json['transmitted']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; data['description'] = description; data['startDt'] = startDt; data['user'] = user; data['eventtype'] = eventtype; data['transmitted'] = transmitted; return data; } }