serialize method

String serialize()

Implementation

String serialize() {
  final bytes = clMedia.file?.bytes;
  return jsonEncode({
    'name': clMedia.file?.name,
    'bytes': bytes != null ? base64Encode(bytes) : null,
    'height': height,
    'width': width,
    'mimeType': mimeType,
  });
}