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,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );