toMap method

Map<String, dynamic> toMap()
override

Implementation

Map<String, dynamic> toMap() {
    return {
        "\$id": $id,
        "\$createdAt": $createdAt,
        "\$updatedAt": $updatedAt,
        "targetId": targetId,
        "target": target.toMap(),
        "userId": userId,
        "userName": userName,
        "topicId": topicId,
        "providerType": providerType,
    };
}