AccessConfig.fromJson constructor

AccessConfig.fromJson(
  1. Object? j
)

Implementation

factory AccessConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return AccessConfig(
    externalIpv6: switch (json['externalIpv6']) {
      null => null,
      Object $1 => decodeString($1),
    },
    externalIpv6PrefixLength: switch (json['externalIpv6PrefixLength']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    kind: switch (json['kind']) {
      null => null,
      Object $1 => decodeString($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    natIP: switch (json['natIP']) {
      null => null,
      Object $1 => decodeString($1),
    },
    networkTier: switch (json['networkTier']) {
      null => null,
      Object $1 => decodeString($1),
    },
    publicPtrDomainName: switch (json['publicPtrDomainName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    securityPolicy: switch (json['securityPolicy']) {
      null => null,
      Object $1 => decodeString($1),
    },
    setPublicPtr: switch (json['setPublicPtr']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    type: switch (json['type']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}