toJson method
Generates a map representing the FlagReason.
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['name'] = name;
map['description'] = description;
map['createdAt'] = createdAt == null ? 0 : createdAt;
map['updatedAt'] = updatedAt == null ? 0 : updatedAt;
return map;
}