toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final masterInstanceSecurityGroupId = this.masterInstanceSecurityGroupId;
final type = this.type;
return {
'Id': id,
if (masterInstanceSecurityGroupId != null)
'MasterInstanceSecurityGroupId': masterInstanceSecurityGroupId,
if (type != null) 'Type': type.toValue(),
};
}