fromJson static method
Implementation
static ContainerSpec fromJson(Map<String, dynamic> json) {
return ContainerSpec(
command: json['command'] as String?,
image: json['image'] as String,
environment: json['environment'] == null ? null : (json['environment'] as List).map((e) => EnvironmentVariable.fromJson(e)).toList(),
secrets: (json['secrets'] as List?)?.whereType<String>().toList() ?? const <String>[],
pullSecret: json['pull_secret'] as String?,
storage: ServiceStorageMountsSpec.fromJson(json['storage'] as Map<String, dynamic>?),
apiKey: (json['api_key'] == null) ? null : ServiceApiKeySpec.fromJson(json['api_key'] as Map<String, dynamic>),
);
}