Execution.fromJson constructor

Execution.fromJson(
  1. Map json_
)

Implementation

Execution.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')
            ? ExecutionSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? ExecutionStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );