ConsistentHashLoadBalancerSettingsHttpCookie.fromJson constructor

ConsistentHashLoadBalancerSettingsHttpCookie.fromJson(
  1. Object? j
)

Implementation

factory ConsistentHashLoadBalancerSettingsHttpCookie.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ConsistentHashLoadBalancerSettingsHttpCookie(
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    path: switch (json['path']) {
      null => null,
      Object $1 => decodeString($1),
    },
    ttl: switch (json['ttl']) {
      null => null,
      Object $1 => Duration.fromJson($1),
    },
  );
}