toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (from != null) {
json[r'from'] = from;
}
if (to != null) {
json[r'to'] = to;
}
if (deliveryEnvironment != null) {
json[r'deliveryEnvironment'] = deliveryEnvironment;
}
if (code != null) {
json[r'code'] = code;
}
if (codeType != null) {
json[r'codeType'] = codeType;
}
if (multiple != null) {
json[r'multiple'] = multiple;
}
if (temporary != null) {
json[r'temporary'] = temporary;
}
if (reference != null) {
json[r'reference'] = reference;
}
if (legalReferencePath != null) {
json[r'legalReferencePath'] = legalReferencePath;
}
if (flatRateSystem != null) {
json[r'flatRateSystem'] = flatRateSystem;
}
if (reimbursementBasePrice != null) {
json[r'reimbursementBasePrice'] = reimbursementBasePrice;
}
if (referenceBasePrice != null) {
json[r'referenceBasePrice'] = referenceBasePrice;
}
if (copaymentSupplement != null) {
json[r'copaymentSupplement'] = copaymentSupplement;
}
if (pricingUnit != null) {
json[r'pricingUnit'] = pricingUnit;
}
if (pricingSlice != null) {
json[r'pricingSlice'] = pricingSlice;
}
if (reimbursementCriterion != null) {
json[r'reimbursementCriterion'] = reimbursementCriterion;
}
json[r'copayments'] = copayments;
return json;
}