toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'object': object,
      'created_time': createdTime.toIso8601String(),
      'last_edited_time': lastEditedTime.toIso8601String(),
      if (expiryTime != null) 'expiry_time': expiryTime!.toIso8601String(),
      'upload_url': uploadUrl,
      'archived': archived,
      'status': status.name,
      'filename': filename,
      'content_type': contentType,
      'content_length': contentLength,
    };