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,
  };
}