fromJson static method

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

Implementation

static ContainerTemplateSpec? fromJson(Map<String, dynamic> json) {
  return ContainerTemplateSpec(
    environment: (json['environment'] as List<dynamic>?)?.map((e) => EnvironmentVariable.fromJson(e as Map<String, dynamic>)).toList(),

    image: json['image'] as String?,
    command: json['command'] as String?,
    storage: json['storage'] == null ? null : ServiceTemplateMountSpec.fromJson(json['storage'] as Map<String, dynamic>),
  );
}