ContainerDefinition.fromJson constructor
ContainerDefinition.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ContainerDefinition.fromJson(Map<String, dynamic> json) {
return ContainerDefinition(
containerHostname: json['ContainerHostname'] as String?,
environment: (json['Environment'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
image: json['Image'] as String?,
imageConfig: json['ImageConfig'] != null
? ImageConfig.fromJson(json['ImageConfig'] as Map<String, dynamic>)
: null,
mode: (json['Mode'] as String?)?.toContainerMode(),
modelDataUrl: json['ModelDataUrl'] as String?,
modelPackageName: json['ModelPackageName'] as String?,
);
}