Messages.fromJson constructor

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

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'],
);