Map<String,dynamic> toJson() { Map<String,dynamic> result = { "id" : id, "name" : name, "beacon_id" : beaconId }; return result; }