toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'transfer_method': transferMethod,
    if (url != null) 'url': url,
    if (uploadFileId != null) 'upload_file_id': uploadFileId,
  };
}