Author.fromMap constructor

Author.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Author.fromMap(Map<String, dynamic> map) {
  return Author(
    userName: map['userName'] ?? '',
    companyTitle: map['companyTitle'] ?? '',
    avatarUrl: map['avatarUrl'],
  );
}