Voucher.fromMap constructor
Implementation
factory Voucher.fromMap(Map<String, dynamic> map) {
return Voucher(
id: map['id'],
lat: map['latitude'],
long: map['longitude'],
aim: map['aim'],
dateTime: DateTime.parse(map['timestamp']),
secret: map['secret'],
creationMode: creationModeFromString(map['creationMode']),
);
}