Converts the Beacon instance to a JSON map.
Map<String, dynamic> toJson() => <String, dynamic>{ 'plantCode': name, 'uuid': uuid, };