Job.fromJson constructor

Job.fromJson(
  1. Map json_
)

Implementation

Job.fromJson(core.Map json_)
    : this(
        apiVersion: json_.containsKey('apiVersion')
            ? json_['apiVersion'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metadata: json_.containsKey('metadata')
            ? ObjectMeta.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        spec: json_.containsKey('spec')
            ? JobSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? JobStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );