ByteArkPlayerNativeEvent.fromMap constructor
Constructs an event from the decoded JSON map sent by the native side.
Implementation
factory ByteArkPlayerNativeEvent.fromMap(Map<String, dynamic> json) {
return ByteArkPlayerNativeEvent(
type: json['type'] as String,
data: json['data'],
playerId: json['playerId'] as String?,
);
}