toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      if (type != null) "type": encodeValue(type),
      if (name != null) "name": encodeValue(name),
      if (description != null) "description": encodeValue(description),
      "enabled": encodeValue(enabled),
      "confirms_use": encodeValue(confirmsUse),
    };