MapTask.fromJson constructor

MapTask.fromJson(
  1. Map _json
)

Implementation

MapTask.fromJson(core.Map _json)
    : this(
        counterPrefix: _json.containsKey('counterPrefix')
            ? _json['counterPrefix'] as core.String
            : null,
        instructions: _json.containsKey('instructions')
            ? (_json['instructions'] as core.List)
                .map((value) => ParallelInstruction.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stageName: _json.containsKey('stageName')
            ? _json['stageName'] as core.String
            : null,
        systemName: _json.containsKey('systemName')
            ? _json['systemName'] as core.String
            : null,
      );