Topics.fromMap constructor

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

Implementation

factory Topics.fromMap(Map<String, dynamic> map) {
  return Topics(
    topic: map['topic'] ?? '',
    addDate: DateTime.tryParse(map['addDate'] ?? ""),
  );
}