toJson method

Map<String, Object> toJson()

Implementation

Map<String, Object> toJson() => {'\$regex': pattern, '\$oid': options};