HealthCheck.fromJson constructor

HealthCheck.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory HealthCheck.fromJson(Map<String, dynamic> json) {
  return HealthCheck(
    command: (json['command'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    interval: json['interval'] as int?,
    retries: json['retries'] as int?,
    startPeriod: json['startPeriod'] as int?,
    timeout: json['timeout'] as int?,
  );
}