toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
jsonObject['name'] = name;
if (mimeType != null) jsonObject['mime-type'] = mimeType;
jsonObject['value'] = value;
return jsonObject;
}