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