You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/modules/incident_module/incident_attachment_model.dart

25 lines
684 B
Dart

class IncidentAttachments {
num? id;
num? incidentId;
String? attachmentName;
String? attachmentDescription;
IncidentAttachments({this.id, this.attachmentName, this.incidentId, this.attachmentDescription});
IncidentAttachments.fromJson(dynamic json) {
id = json['id'];
incidentId = json['incidentId'];
attachmentName = json['attachmentName'];
attachmentDescription = json['attachmentDescription'];
}
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['attachmentName'] = attachmentName;
map['incidentId'] = incidentId;
map['attachmentDescription'] = attachmentDescription;
return map;
}
}