This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/models/rota/ShiftLocationData.dart

36 lines
848 B
Dart

class ShiftLocationData {
ShiftLocationData({
this.id,
this.shiftLocationName,
this.addedby,
this.active,
this.createdAt,
this.updatedAt,});
ShiftLocationData.fromJson(dynamic json) {
id = json['_id'];
shiftLocationName = json['shiftLocationName'];
addedby = json['addedby'];
active = json['active'];
createdAt = json['createdAt'];
updatedAt = json['updatedAt'];
}
String? id;
String? shiftLocationName;
String? addedby;
bool? active;
String? createdAt;
String? updatedAt;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['_id'] = id;
map['shiftLocationName'] = shiftLocationName;
map['addedby'] = addedby;
map['active'] = active;
map['createdAt'] = createdAt;
map['updatedAt'] = updatedAt;
return map;
}
}