v1TvcContainerSpec.fromJson constructor

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

Implementation

factory v1TvcContainerSpec.fromJson(Map<String, dynamic> json) {
  final _containerUrl = json['containerUrl'] as String;
  final _path = json['path'] as String;
  final _args = (json['args'] as List).map((e) => e as String).toList();
  final _hasPullSecret = json['hasPullSecret'] as bool;
  return v1TvcContainerSpec(
    containerUrl: _containerUrl,
    path: _path,
    args: _args,
    hasPullSecret: _hasPullSecret,
  );
}