toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (bfdSessionInitializationMode != null)
        'bfdSessionInitializationMode': bfdSessionInitializationMode!,
      if (configUpdateTimestampMicros != null)
        'configUpdateTimestampMicros': configUpdateTimestampMicros!,
      if (controlPacketCounts != null)
        'controlPacketCounts': controlPacketCounts!,
      if (controlPacketIntervals != null)
        'controlPacketIntervals': controlPacketIntervals!,
      if (localDiagnostic != null) 'localDiagnostic': localDiagnostic!,
      if (localState != null) 'localState': localState!,
      if (negotiatedLocalControlTxIntervalMs != null)
        'negotiatedLocalControlTxIntervalMs':
            negotiatedLocalControlTxIntervalMs!,
      if (rxPacket != null) 'rxPacket': rxPacket!,
      if (txPacket != null) 'txPacket': txPacket!,
      if (uptimeMs != null) 'uptimeMs': uptimeMs!,
    };