toMap method

Map<String, dynamic> toMap()

Converts a FileMessageParams object into a map.

Implementation

Map<String, dynamic> toMap() => {
      'file': file?.path,
      'caption': caption,
      'thumbImage': thumbImage,
      'fileSize': fileSize,
      'duration': duration,
      'fileName': fileName,
    };