toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final roleArn = this.roleArn;
  final subnetIds = this.subnetIds;
  final vpcId = this.vpcId;
  final securityGroups = this.securityGroups;
  return {
    'roleArn': roleArn,
    'subnetIds': subnetIds,
    'vpcId': vpcId,
    if (securityGroups != null) 'securityGroups': securityGroups,
  };
}