toMap method
Implementation
Map<int, dynamic> toMap() {
final result = <int, dynamic>{
CborHubCommandKeys.commandType: commandType,
};
if (args.isNotEmpty) {
result[CborHubCommandKeys.arguments] = args;
}
result[CborHubCommandKeys.commandId] = commandId;
return result;
}