EditorMessage.fromJson constructor

EditorMessage.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory EditorMessage.fromJson(Map<String, dynamic> map) {
  return EditorMessage(
    key: map["key"] as String,
    type: map["type"] as String,
    method: map["method"] as String,
    payload: map["payload"] != null ? map["payload"] as String : null,
  );
}