HelpdeskArticle.fromMap constructor

HelpdeskArticle.fromMap(
  1. Map map
)

Implementation

HelpdeskArticle.fromMap(Map map) {
  id = map['id'];
  title = map['title'];
  content = map['content'] ?? '';
  section = map['section'] ?? '';
  category = map['category'] ?? '';
  updatedAt =
      map['updatedAt'] != null ? formatDate(map['updatedAt']) : null;
}