ManagedInstanceInstanceHealth.fromJson constructor

ManagedInstanceInstanceHealth.fromJson(
  1. Object? j
)

Implementation

factory ManagedInstanceInstanceHealth.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ManagedInstanceInstanceHealth(
    detailedHealthState: switch (json['detailedHealthState']) {
      null => null,
      Object $1 => decodeString($1),
    },
    healthCheck: switch (json['healthCheck']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}