toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (code != null) {
json[r'code'] = code;
}
if (flatRateType != null) {
json[r'flatRateType'] = flatRateType;
}
json[r'label'] = label;
json[r'valorisations'] = valorisations;
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}