toJson method

Map<String, dynamic> toJson()

Implementation

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