ConnectionEvent.fromMap constructor

ConnectionEvent.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ConnectionEvent.fromMap(Map<String, dynamic> map) {
  return ConnectionEvent(
    type: map['type'] as int,
    deviceAddress: map['deviceAddress'] as String?,
    message: map['message'] as String?,
  );
}