SuggestionAuthor.fromJson constructor

SuggestionAuthor.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SuggestionAuthor.fromJson(Map<String, dynamic> json) {
  return SuggestionAuthor(
    id: json['id'].toString(),
    avatar: json['avatar'],
    username: json['username'],
  );
}