toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowCredentials != null) 'allowCredentials': allowCredentials!,
      if (allowHeaders != null) 'allowHeaders': allowHeaders!,
      if (allowMethods != null) 'allowMethods': allowMethods!,
      if (allowOriginRegexes != null)
        'allowOriginRegexes': allowOriginRegexes!,
      if (allowOrigins != null) 'allowOrigins': allowOrigins!,
      if (disabled != null) 'disabled': disabled!,
      if (exposeHeaders != null) 'exposeHeaders': exposeHeaders!,
      if (maxAge != null) 'maxAge': maxAge!,
    };