Thread.fromJson constructor

Thread.fromJson(
  1. Map json_
)

Implementation

Thread.fromJson(core.Map json_)
    : this(
        historyId: json_.containsKey('historyId')
            ? json_['historyId'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        messages: json_.containsKey('messages')
            ? (json_['messages'] as core.List)
                .map((value) => Message.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        snippet: json_.containsKey('snippet')
            ? json_['snippet'] as core.String
            : null,
      );