InterconnectDiagnosticsLinkStatus.fromJson constructor

InterconnectDiagnosticsLinkStatus.fromJson(
  1. Map json_
)

Implementation

InterconnectDiagnosticsLinkStatus.fromJson(core.Map json_)
    : this(
        arpCaches: json_.containsKey('arpCaches')
            ? (json_['arpCaches'] as core.List)
                .map((value) => InterconnectDiagnosticsARPEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        circuitId: json_.containsKey('circuitId')
            ? json_['circuitId'] as core.String
            : null,
        googleDemarc: json_.containsKey('googleDemarc')
            ? json_['googleDemarc'] as core.String
            : null,
        lacpStatus: json_.containsKey('lacpStatus')
            ? InterconnectDiagnosticsLinkLACPStatus.fromJson(
                json_['lacpStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        macsec: json_.containsKey('macsec')
            ? InterconnectDiagnosticsMacsecStatus.fromJson(
                json_['macsec'] as core.Map<core.String, core.dynamic>)
            : null,
        operationalStatus: json_.containsKey('operationalStatus')
            ? json_['operationalStatus'] as core.String
            : null,
        receivingOpticalPower: json_.containsKey('receivingOpticalPower')
            ? InterconnectDiagnosticsLinkOpticalPower.fromJson(
                json_['receivingOpticalPower']
                    as core.Map<core.String, core.dynamic>)
            : null,
        transmittingOpticalPower:
            json_.containsKey('transmittingOpticalPower')
                ? InterconnectDiagnosticsLinkOpticalPower.fromJson(
                    json_['transmittingOpticalPower']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );