toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}