PayloadListResponse.fromJson constructor
PayloadListResponse.fromJson(
- dynamic json
Implementation
PayloadListResponse.fromJson(dynamic json) {
payloads = [];
error = null;
if (json == null) {
error = "json is null";
} else {
List pushMessages = json['pushMessages'] as List;
payloads = pushMessages.map(Payload.fromJson).toList();
}
}