@override Object toJson() => { if (mimeType.isNotDefault) 'mimeType': mimeType, if (data.isNotDefault) 'data': encodeBytes(data), };