FoundMessages.fromJson constructor

FoundMessages.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory FoundMessages.fromJson(Map<String, dynamic> json) => FoundMessages(
  totalCount: json['total_count'],
  messages: List<Message>.from((json['messages'] ?? []).map((item) => Message.fromJson(item)).toList()),
  nextOffset: json['next_offset'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);