toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final description = this.description;
final lastAccessTime = this.lastAccessTime;
final lastAnalyzedTime = this.lastAnalyzedTime;
final owner = this.owner;
final parameters = this.parameters;
final partitionKeys = this.partitionKeys;
final retention = this.retention;
final storageDescriptor = this.storageDescriptor;
final tableType = this.tableType;
final targetTable = this.targetTable;
final viewExpandedText = this.viewExpandedText;
final viewOriginalText = this.viewOriginalText;
return {
'Name': name,
if (description != null) 'Description': description,
if (lastAccessTime != null)
'LastAccessTime': unixTimestampToJson(lastAccessTime),
if (lastAnalyzedTime != null)
'LastAnalyzedTime': unixTimestampToJson(lastAnalyzedTime),
if (owner != null) 'Owner': owner,
if (parameters != null) 'Parameters': parameters,
if (partitionKeys != null) 'PartitionKeys': partitionKeys,
if (retention != null) 'Retention': retention,
if (storageDescriptor != null) 'StorageDescriptor': storageDescriptor,
if (tableType != null) 'TableType': tableType,
if (targetTable != null) 'TargetTable': targetTable,
if (viewExpandedText != null) 'ViewExpandedText': viewExpandedText,
if (viewOriginalText != null) 'ViewOriginalText': viewOriginalText,
};
}