import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; class MySelectedExamination { MasterKeyModel selectedExamination; String remark; bool isNormal; bool isAbnormal; bool notExamined; bool isNew; bool isLocal; int createdBy; String createdOn; String editedOn; MySelectedExamination({ this.selectedExamination, this.remark, this.isNormal = false, this.isAbnormal = false, this.notExamined = true, this.isNew = true, this.isLocal = true, this.createdBy, this.createdOn, this.editedOn, }); MySelectedExamination.fromJson(Map json) { selectedExamination = json['selectedExamination'] != null ? new MasterKeyModel.fromJson(json['selectedExamination']) : null; remark = json['remark']; isNormal = json['isNormal']; isAbnormal = json['isAbnormal']; notExamined = json['notExamined']; isNew = json['isNew']; createdBy = json['createdBy']; createdOn = json['createdOn']; editedOn = json['editedOn']; isLocal = json['isLocal']; } Map toJson() { final Map data = new Map(); if (this.selectedExamination != null) { data['selectedExamination'] = this.selectedExamination.toJson(); } data['remark'] = this.remark; data['isNormal'] = this.isNormal; data['isAbnormal'] = this.isAbnormal; data['notExamined'] = this.notExamined; data['isNew'] = this.isNew; data['createdBy'] = this.createdBy; data['createdOn'] = this.createdOn; data['editedOn'] = this.editedOn; data['isLocal'] = this.isLocal; return data; } }