Map<String, Object?> toJson() { var value = this.value; var links = this.links; final json = <String, Object?>{}; json[r'value'] = value; json[r'_links'] = links.toJson(); return json; }