toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'targetId': targetId.toJson(),
    'type': type,
    'title': title,
    'url': url,
    'attached': attached,
    'canAccessOpener': canAccessOpener,
    if (openerId != null) 'openerId': openerId!.toJson(),
    if (openerFrameId != null) 'openerFrameId': openerFrameId!.toJson(),
    if (browserContextId != null)
      'browserContextId': browserContextId!.toJson(),
    if (subtype != null) 'subtype': subtype,
  };
}