SetSemantics.deserialize constructor

SetSemantics.deserialize(
  1. Map<String, String> json, {
  2. String? path,
})

Deserializes this command from the value generated by serialize.

Implementation

SetSemantics.deserialize(super.json, {String? path})
  : enabled = json.containsKey('enabled')
        ? json['enabled']!.toLowerCase() == 'true'
        : throw ArgumentError.notNull(path == null ? 'enabled' : '$path.enabled'),
    super.deserialize();