toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (ssin != null) {
json[r'ssin'] = ssin;
}
if (lastName != null) {
json[r'lastName'] = lastName;
}
if (firstName != null) {
json[r'firstName'] = firstName;
}
if (dateOfBirth != null) {
json[r'dateOfBirth'] = dateOfBirth;
}
if (sex != null) {
json[r'sex'] = sex;
}
if (documentId != null) {
json[r'documentId'] = documentId;
}
if (protocol != null) {
json[r'protocol'] = protocol;
}
if (complete != null) {
json[r'complete'] = complete;
}
if (demandDate != null) {
json[r'demandDate'] = demandDate;
}
if (labo != null) {
json[r'labo'] = labo;
}
if (engine != null) {
json[r'engine'] = engine;
}
json[r'codes'] = codes.toList();
json[r'services'] = services;
return json;
}