Added user search in talk, currently with no further functionality

This commit is contained in:
2023-06-04 21:25:56 +02:00
parent 4ef21a362b
commit e969e25e9e
7 changed files with 225 additions and 5 deletions

View File

@ -0,0 +1,30 @@
import 'package:json_annotation/json_annotation.dart';
part 'autocompleteResponse.g.dart';
@JsonSerializable(explicitToJson: true)
class AutocompleteResponse {
List<AutocompleteResponseObject> data;
AutocompleteResponse(this.data);
factory AutocompleteResponse.fromJson(Map<String, dynamic> json) => _$AutocompleteResponseFromJson(json);
Map<String, dynamic> toJson() => _$AutocompleteResponseToJson(this);
}
@JsonSerializable()
class AutocompleteResponseObject {
String id;
String label;
String? icon;
String? source;
List<String>? status;
String? subline;
String? shareWithDisplayNameUniqe;
AutocompleteResponseObject(this.id, this.label, this.icon, this.source, this.status,
this.subline, this.shareWithDisplayNameUniqe);
factory AutocompleteResponseObject.fromJson(Map<String, dynamic> json) => _$AutocompleteResponseObjectFromJson(json);
Map<String, dynamic> toJson() => _$AutocompleteResponseObjectToJson(this);
}