toJson method

Map toJson()

Implementation

Map toJson() =>
    {r'$collection': collection, r'$id': id, if (db != null) r'$db': db};