You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/models/user_profile_search_model.dart

28 lines
612 B
Dart

import 'user_model.dart';
class UserProfileSearchResponse {
int count;
String? next;
String? previous;
List<Profile> results;
UserProfileSearchResponse({
required this.count,
required this.next,
required this.previous,
required this.results,
});
factory UserProfileSearchResponse.fromJson(Map<String, dynamic> json) {
return UserProfileSearchResponse(
count: json["count"],
next: json["next"],
previous: json["previous"],
results: json["results"]
.map((p) => Profile.fromJson(p))
.toList()
.cast<Profile>(),
);
}
}