GetHealthTargetPoolRequest.fromJson constructor

GetHealthTargetPoolRequest.fromJson(
  1. Object? j
)

Implementation

factory GetHealthTargetPoolRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetHealthTargetPoolRequest(
    instanceReferenceResource: switch (json['instanceReferenceResource']) {
      null => null,
      Object $1 => InstanceReference.fromJson($1),
    },
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
    region: switch (json['region']) {
      null => '',
      Object $1 => decodeString($1),
    },
    targetPool: switch (json['targetPool']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}