toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of FileVersion.

Implementation

Map<String, dynamic> toJson() {
  return {
    'Name': name,
    'IsFolder': isFolder,
    'ModifiedDate':
        modifiedDate == null ? '' : modifiedDate!.toUtc().toIso8601String(),
    'Size': size,
    'Path': path,
    'VersionId': versionId,
    'IsLatest': isLatest
  };
}