toArguments method
Converts the descriptor to a map of arguments.
This method is useful for passing the descriptor as arguments to the Faketooth simulator.
Example usage:
FaketoothDescriptor descriptor = FaketoothDescriptor(
uuid: '00002902-0000-1000-8000-00805f9b34fb',
initialValue: Uint8List.fromList([0x00, 0x00]),
);
Map<String, dynamic> arguments = descriptor.toArguments();
print(arguments);
// Output: {uuid: '00002902-0000-1000-8000-00805f9b34fb', initialValue: Uint8List.fromList([0x00, 0x00])}
Implementation
Map<String, dynamic> toArguments() {
return {
'uuid' : uuid,
'initialValue' : initialValue,
};
}