title: Dart: How to parse Map variable with various special characters like $, {}, " and ' inside var
body: <p>I have map like this: <code>{&quot;a&quot;: &quot;2022-01-26T17:10:51&quot;, &quot;b&quot;: &quot;{$WWWWWW}&quot;, &quot;c&quot;:&quot;$$$.id=='TEXT'&quot;}</code>
  As You see, inside code is a lot of <code>&quot;&quot;, $, '' {}</code>. How I can parse it? I could not save this string as map, there is some my tries:</p>
  <pre class="lang-dart prettyprint-override"><code>
    Map m = {&quot;a&quot;: &quot;2022-01-26T17:10:51&quot;, &quot;b&quot;: &quot;{$WWWWWW}&quot;, &quot;c&quot;:&quot;$$$.id=='TEXT'&quot;};
    String s1 = r'{&quot;a&quot;: &quot;2022-01-26T17:10:51&quot;, &quot;b&quot;: &quot;{$WWWWWW}&quot;, &quot;c&quot;:&quot;$$$.id=='TEXT'&quot;}';
    String s2 = '{&quot;a&quot;: &quot;2022-01-26T17:10:51&quot;, &quot;b&quot;: &quot;{$WWWWWW}&quot;, &quot;c&quot;:&quot;$$$.id=='TEXT'&quot;}';
    String s3 = b'{&quot;a&quot;: &quot;2022-01-26T17:10:51&quot;, &quot;b&quot;: &quot;{$WWWWWW}&quot;, &quot;c&quot;:&quot;$$$.id=='TEXT'&quot;}';
  </code></pre>
  <p>But none of these line can not pass compilation.</p>