RouterInterface.fromJson constructor

RouterInterface.fromJson(
  1. Object? j
)

Implementation

factory RouterInterface.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RouterInterface(
    ipRange: switch (json['ipRange']) {
      null => null,
      Object $1 => decodeString($1),
    },
    ipVersion: switch (json['ipVersion']) {
      null => null,
      Object $1 => decodeString($1),
    },
    linkedInterconnectAttachment:
        switch (json['linkedInterconnectAttachment']) {
          null => null,
          Object $1 => decodeString($1),
        },
    linkedVpnTunnel: switch (json['linkedVpnTunnel']) {
      null => null,
      Object $1 => decodeString($1),
    },
    managementType: switch (json['managementType']) {
      null => null,
      Object $1 => decodeString($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    privateIpAddress: switch (json['privateIpAddress']) {
      null => null,
      Object $1 => decodeString($1),
    },
    redundantInterface: switch (json['redundantInterface']) {
      null => null,
      Object $1 => decodeString($1),
    },
    subnetwork: switch (json['subnetwork']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}