IAPOI.fromMap constructor

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

Implementation

factory IAPOI.fromMap(Map<String, dynamic> map) {
  return IAPOI(
    id: map['id'] as String,
    name: map['name'] as String,
    floor: map['floor'] as int,
    coordinate:
        IACoordinate.fromMap(map['coordinate'] as Map<String, dynamic>),
    payload: map['payload'] as String,
  );
}