toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': 'computer_screenshot',
      if (fileId != null) 'file_id': fileId,
      if (imageUrl != null) 'image_url': imageUrl,
    };