JsonMap? readJsonMap(JsonMap input, String key) { final value = input[key]; return value is Map ? parseJsonMap(value) : null; }