toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var config = this.config;
  var id = this.id;
  var properties = this.properties;
  var value = this.value;

  final json = <String, Object?>{};
  if (config != null) {
    json[r'config'] = config.toJson();
  }
  json[r'id'] = id;
  if (properties != null) {
    json[r'properties'] = properties;
  }
  json[r'value'] = value;
  return json;
}