toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  if (representation != null) {
    json[r'representation'] = representation;
  }
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}