toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'corsErrorStatus': corsErrorStatus.toJson(),
'isWarning': isWarning,
'request': request.toJson(),
if (location != null) 'location': location!.toJson(),
if (initiatorOrigin != null) 'initiatorOrigin': initiatorOrigin,
if (resourceIPAddressSpace != null)
'resourceIPAddressSpace': resourceIPAddressSpace!.toJson(),
if (clientSecurityState != null)
'clientSecurityState': clientSecurityState!.toJson(),
};
}