toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'commentId': commentId,
      'userId': userId,
      'type': type,
      'createdAt': createdAt.toIso8601String(),
    };