Skip to content

ServiceConfiguration

A connected device that is a software service rather than hardware.

Examples are an online service, like a weather service, which the app reaches over the internet, or a local service on the phone, like a health service. Its registration is a ServiceRegistration.

Inheritance
Annotations

Constructors

ServiceConfiguration.fromJson

ServiceConfiguration<TRegistration extends ServiceRegistration>.fromJson(
  1. Map<String, dynamic> json
)

ServiceConfiguration

ServiceConfiguration<TRegistration extends ServiceRegistration>({
  1. required String roleName,
  2. bool? isOptional = true,
})

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.