Skip to content

CustomProtocolDevice

A general-purpose primary device for custom protocols. Only used when downloading custom protocols from the CARP web service.

Inheritance
Annotations

Constructors

CustomProtocolDevice.fromJson

CustomProtocolDevice.fromJson(
  1. Map<String, dynamic> json
)

CustomProtocolDevice

CustomProtocolDevice({
  1. String roleName = CustomProtocolDevice.DEFAULT_ROLE_NAME,
})

Create a new CustomProtocolDevice device descriptor. If roleName is not specified, then the DEFAULT_ROLE_NAME is used.

Constants

DEFAULT_ROLE_NAME

String const DEFAULT_ROLE_NAME

The default role name for a custom protocol device.

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.