toJson method
Implementation
Map<String, dynamic> toJson() {
final allowCredentials = this.allowCredentials;
final allowHeaders = this.allowHeaders;
final allowMethods = this.allowMethods;
final allowOrigins = this.allowOrigins;
final exposeHeaders = this.exposeHeaders;
final maxAge = this.maxAge;
return {
if (allowCredentials != null) 'allowCredentials': allowCredentials,
if (allowHeaders != null) 'allowHeaders': allowHeaders,
if (allowMethods != null) 'allowMethods': allowMethods,
if (allowOrigins != null) 'allowOrigins': allowOrigins,
if (exposeHeaders != null) 'exposeHeaders': exposeHeaders,
if (maxAge != null) 'maxAge': maxAge,
};
}