PayloadItem.fromJson constructor

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

Implementation

factory PayloadItem.fromJson(Map<String, dynamic> json) {
  return PayloadItem(
    type: json['type'],
    data: json['data'],
  );
}