toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (assetModelId != null) {
json[r'AssetModelId'] = assetModelId;
}
if (assetId != null) {
json[r'AssetId'] = assetId;
}
if (name != null) {
json[r'Name'] = name;
}
if (revision != null) {
json[r'Revision'] = revision;
}
if (status != null) {
json[r'Status'] = status;
}
if (isCurrent != null) {
json[r'IsCurrent'] = isCurrent;
}
if (uploadedById != null) {
json[r'UploadedById'] = uploadedById;
}
if (segmentName != null) {
json[r'SegmentName'] = segmentName;
}
if (segmentId != null) {
json[r'SegmentId'] = segmentId;
}
if (assetName != null) {
json[r'AssetName'] = assetName;
}
if (modelPath != null) {
json[r'ModelPath'] = modelPath;
}
if (modelSize != null) {
json[r'ModelSize'] = modelSize;
}
if (oneMeter != null) {
json[r'OneMeter'] = oneMeter;
}
if (originalAuthorId != null) {
json[r'OriginalAuthorId'] = originalAuthorId;
}
if (dateUploaded != null) {
json[r'DateUploaded'] = dateUploaded.toUtc().toIso8601String();
}
if (dateProcessed != null) {
json[r'DateProcessed'] = dateProcessed.toUtc().toIso8601String();
}
if (lastEntityId != null) {
json[r'LastEntityId'] = lastEntityId;
}
if (processingStage != null) {
json[r'ProcessingStage'] = processingStage;
}
if (processingStatus != null) {
json[r'ProcessingStatus'] = processingStatus;
}
return json;
}