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 toJson() { final map = {}; map['_id'] = id; map['shiftLocationName'] = shiftLocationName; map['addedby'] = addedby; map['active'] = active; map['createdAt'] = createdAt; map['updatedAt'] = updatedAt; return map; } }