VRF.fromJson constructor

VRF.fromJson(
  1. Map json_
)

Implementation

VRF.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        qosPolicy: json_.containsKey('qosPolicy')
            ? QosPolicy.fromJson(
                json_['qosPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        vlanAttachments: json_.containsKey('vlanAttachments')
            ? (json_['vlanAttachments'] as core.List)
                .map((value) => VlanAttachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );