fromJson static method
Implementation
static Messages? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return Messages(
totalCount: (json['total_count'] as int?) ?? 0,
messages: List<Message>.from(
tdListFromJson(json['messages'])
.map((item) => Message.fromJson(tdMapFromJson(item)))
.whereType<Message>(),
),
);
}