JobTemplate.fromJson constructor

JobTemplate.fromJson(
  1. Map json_
)

Implementation

JobTemplate.fromJson(core.Map json_)
    : this(
        config: json_.containsKey('config')
            ? JobConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );