toJson method

Map<String, dynamic> toJson()

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