Http2HealthCheck.fromJson constructor

Http2HealthCheck.fromJson(
  1. Object? j
)

Implementation

factory Http2HealthCheck.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Http2HealthCheck(
    host: switch (json['host']) {
      null => null,
      Object $1 => decodeString($1),
    },
    port: switch (json['port']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    portName: switch (json['portName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    portSpecification: switch (json['portSpecification']) {
      null => null,
      Object $1 => decodeString($1),
    },
    proxyHeader: switch (json['proxyHeader']) {
      null => null,
      Object $1 => decodeString($1),
    },
    requestPath: switch (json['requestPath']) {
      null => null,
      Object $1 => decodeString($1),
    },
    response: switch (json['response']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}