AuthorDetails.fromMap constructor
Implementation
factory AuthorDetails.fromMap(Map<String, dynamic> json) => AuthorDetails(
name: json['name'] as String? ?? '',
username: json['username'] as String? ?? '',
avatarPath: json['avatar_path'] as String? ?? '',
rating: json['rating'] as num? ?? 0,
);