fromJson static method
Implementation
static GherkinTable fromJson(String json) {
final data = (jsonDecode(json) as List<dynamic>)
.map((x) => x as Map<String, dynamic>);
final headerRow =
data.isNotEmpty ? TableRow(data.first.keys, 1, true) : null;
final rows = data.map((x) => TableRow(x.values.cast<String>(), 1, false));
final table = GherkinTable(rows, headerRow);
return table;
}