GameEvent.fromMap constructor
GameEvent.fromMap(
- Map map
Implementation
factory GameEvent.fromMap(Map<dynamic, dynamic> map) {
return GameEvent(
description: map['description'],
eventId: map['eventId'],
localeValue: map['localeValue'],
thumbnailUri: map['thumbnailUri'],
name: map['name'],
gamePlayer:
map['gamePlayer'] != null ? Player.fromMap(map['gamePlayer']) : null,
value: map['value'],
isVisible: map['isVisible'],
);
}