History.fromJson constructor
History.fromJson(
- Map json_
Implementation
History.fromJson(core.Map json_)
: this(
id: json_.containsKey('id') ? json_['id'] as core.String : null,
labelsAdded: json_.containsKey('labelsAdded')
? (json_['labelsAdded'] as core.List)
.map((value) => HistoryLabelAdded.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
labelsRemoved: json_.containsKey('labelsRemoved')
? (json_['labelsRemoved'] as core.List)
.map((value) => HistoryLabelRemoved.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
messages: json_.containsKey('messages')
? (json_['messages'] as core.List)
.map((value) => Message.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
messagesAdded: json_.containsKey('messagesAdded')
? (json_['messagesAdded'] as core.List)
.map((value) => HistoryMessageAdded.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
messagesDeleted: json_.containsKey('messagesDeleted')
? (json_['messagesDeleted'] as core.List)
.map((value) => HistoryMessageDeleted.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);