MessageData.fromJson constructor

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

Implementation

factory MessageData.fromJson(Map<String, dynamic> json) => MessageData(
      type: json['type'],
      payload: json['payload'],
    );