toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id.toJson(),
    'loaderId': loaderId.toJson(),
    'url': url,
    'domainAndRegistry': domainAndRegistry,
    'securityOrigin': securityOrigin,
    'mimeType': mimeType,
    'secureContextType': secureContextType.toJson(),
    'crossOriginIsolatedContextType': crossOriginIsolatedContextType.toJson(),
    'gatedAPIFeatures': gatedAPIFeatures.map((e) => e.toJson()).toList(),
    if (parentId != null) 'parentId': parentId!.toJson(),
    if (name != null) 'name': name,
    if (urlFragment != null) 'urlFragment': urlFragment,
    if (unreachableUrl != null) 'unreachableUrl': unreachableUrl,
    if (adFrameStatus != null) 'adFrameStatus': adFrameStatus!.toJson(),
  };
}