AuthorDetails.fromMap constructor

AuthorDetails.fromMap(
  1. Map<String, dynamic> json
)

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,
    );