JsonString typedef

JsonString = Map<String, String>

A map of string keys and string values representing simple string-based JSON data.

{@tool snippet}

JsonString config = {'host': 'localhost', 'port': '8080'};
print(config['port']); // 8080

{@end-tool}

Implementation

typedef JsonString = Map<String, String>;