Converts this matcher to a JSON-serializable map.
@override Map<String, dynamic> toJson() { return <String, dynamic>{'type': typeName}; }