toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endpointPrivateAccess = this.endpointPrivateAccess;
  final endpointPublicAccess = this.endpointPublicAccess;
  final publicAccessCidrs = this.publicAccessCidrs;
  final securityGroupIds = this.securityGroupIds;
  final subnetIds = this.subnetIds;
  return {
    if (endpointPrivateAccess != null)
      'endpointPrivateAccess': endpointPrivateAccess,
    if (endpointPublicAccess != null)
      'endpointPublicAccess': endpointPublicAccess,
    if (publicAccessCidrs != null) 'publicAccessCidrs': publicAccessCidrs,
    if (securityGroupIds != null) 'securityGroupIds': securityGroupIds,
    if (subnetIds != null) 'subnetIds': subnetIds,
  };
}