toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (advertiseMode != null) 'advertiseMode': advertiseMode!,
      if (advertisedGroups != null) 'advertisedGroups': advertisedGroups!,
      if (advertisedIpRanges != null)
        'advertisedIpRanges': advertisedIpRanges!,
      if (advertisedRoutePriority != null)
        'advertisedRoutePriority': advertisedRoutePriority!,
      if (bfd != null) 'bfd': bfd!,
      if (customLearnedIpRanges != null)
        'customLearnedIpRanges': customLearnedIpRanges!,
      if (customLearnedRoutePriority != null)
        'customLearnedRoutePriority': customLearnedRoutePriority!,
      if (enable != null) 'enable': enable!,
      if (enableIpv6 != null) 'enableIpv6': enableIpv6!,
      if (interfaceName != null) 'interfaceName': interfaceName!,
      if (ipAddress != null) 'ipAddress': ipAddress!,
      if (ipv6NexthopAddress != null)
        'ipv6NexthopAddress': ipv6NexthopAddress!,
      if (managementType != null) 'managementType': managementType!,
      if (md5AuthenticationKeyName != null)
        'md5AuthenticationKeyName': md5AuthenticationKeyName!,
      if (name != null) 'name': name!,
      if (peerAsn != null) 'peerAsn': peerAsn!,
      if (peerIpAddress != null) 'peerIpAddress': peerIpAddress!,
      if (peerIpv6NexthopAddress != null)
        'peerIpv6NexthopAddress': peerIpv6NexthopAddress!,
      if (routerApplianceInstance != null)
        'routerApplianceInstance': routerApplianceInstance!,
    };