Message.fromJson constructor

Message.fromJson(
  1. Map json_
)

Implementation

Message.fromJson(core.Map json_)
    : this(
        newJobState: json_.containsKey('newJobState')
            ? json_['newJobState'] as core.String
            : null,
        newTaskState: json_.containsKey('newTaskState')
            ? json_['newTaskState'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );