TaskStatus.fromJson constructor

TaskStatus.fromJson(
  1. Map json_
)

Implementation

TaskStatus.fromJson(core.Map json_)
    : this(
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        statusEvents: json_.containsKey('statusEvents')
            ? (json_['statusEvents'] as core.List)
                .map((value) => StatusEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );