toJson method

  1. @override
Map toJson()
override

Implementation

@override
Map toJson() {
  Map<String, dynamic> map = {
    'id': id,
    'loaderId': loaderId,
    'url': url,
    'domainAndRegistry': domainAndRegistry,
    'securityOrigin': securityOrigin,
    'mimeType': mimeType,
    'secureContextType': secureContextType,
    'crossOriginIsolatedContextType': crossOriginIsolatedContextType,
    'gatedAPIFeatures': gatedAPIFeatures
  };

  if (parentId != null) map['parentId'] = parentId;
  if (name != null) map['name'] = name;
  if (urlFragment != null) map['urlFragment'] = urlFragment;
  if (unreachableUrl != null) map['unreachableUrl'] = unreachableUrl;
  if (AdFrameType != null) map['AdFrameType'] = AdFrameType;
  return map;
}