ImageConfig.fromJson constructor

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

Implementation

factory ImageConfig.fromJson(Map<String, dynamic> json) {
  return ImageConfig(
    command: (json['Command'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    entryPoint: (json['EntryPoint'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    workingDirectory: json['WorkingDirectory'] as String?,
  );
}