toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final subnets = this.subnets;
  final assignPublicIp = this.assignPublicIp;
  final securityGroups = this.securityGroups;
  return {
    'subnets': subnets,
    if (assignPublicIp != null) 'assignPublicIp': assignPublicIp.toValue(),
    if (securityGroups != null) 'securityGroups': securityGroups,
  };
}