MetaData.fromJson constructor

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

Implementation

factory MetaData.fromJson(Map<String, dynamic> json) {
  var payloadList = json['payload'] as List;
  return MetaData(
    payload: payloadList
        .map((item) => PayloadItem.fromJson(item))
        .toList(),
  );
}