toJson method

Map<String, dynamic> toJson()

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;
}