fromJson static method
Implementation
static MessageData fromJson(dynamic json) {
return MessageData(
messageList: (json['content'] as List<dynamic>)
.map((item) => Message.fromJson(item))
.toList(),
totalPages: json['totalPages'],
totalElements: json['totalElements'],
last: json['last'],
numberOfElements: json['numberOfElements'],
first: json['first'],
empty: json['empty'],
);
}