toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final type = this.type;
final details = this.details;
final partition = this.partition;
final region = this.region;
final resourceRole = this.resourceRole;
final tags = this.tags;
return {
'Id': id,
'Type': type,
if (details != null) 'Details': details,
if (partition != null) 'Partition': partition.toValue(),
if (region != null) 'Region': region,
if (resourceRole != null) 'ResourceRole': resourceRole,
if (tags != null) 'Tags': tags,
};
}