toJson method
The {provider, address, name} map the channel carries to the native
side for HaloSdkUi.selectPrinter.
Implementation
Map<String, dynamic> toJson() => {
'provider': provider.name,
'address': address,
'name': name,
};