36 lines
848 B
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;
|
|
}
|
|
|
|
} |