NativeMessage.fromJson constructor

NativeMessage.fromJson(
  1. String jsonString
)

Implementation

factory NativeMessage.fromJson(String jsonString) {
  final map = json.decode(jsonString);
  return NativeMessage(map['eventName'], map['arguments']);
}