toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final file = this.file;
  final format = this.format;
  return {
    'File': base64Encode(file),
    'Format': format.toValue(),
  };
}