fromJson static method

HealthCheck fromJson(
  1. dynamic value
)

Returns a new HealthCheck instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static HealthCheck fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return HealthCheck(
    name: mapValueOfType<String>(json, r'name'),
    message: mapValueOfType<String>(json, r'message'),
    checks: HealthCheck.listFromJson(json[r'checks']),
    status: HealthCheckStatusEnum.fromJson(json[r'status']),
    version: mapValueOfType<String>(json, r'version'),
    commit: mapValueOfType<String>(json, r'commit'),
  );
}