JobMessage.fromJson constructor

JobMessage.fromJson(
  1. Map _json
)

Implementation

JobMessage.fromJson(core.Map _json)
    : this(
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        messageImportance: _json.containsKey('messageImportance')
            ? _json['messageImportance'] as core.String
            : null,
        messageText: _json.containsKey('messageText')
            ? _json['messageText'] as core.String
            : null,
        time: _json.containsKey('time') ? _json['time'] as core.String : null,
      );