toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  json[r'attributes'] = attributes.map((i) => i.value).toList();
  if (scope != null) {
    json[r'scope'] = scope.toJson();
  }
  return json;
}