toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  if (namespace != null) 'namespace': namespace,
  if (!createTable) 'create_table': createTable,
  if (drop) 'drop': drop,
  if (!inspect) 'inspect': inspect,
  if (!listTables) 'list_tables': listTables,
  if (!execute) 'execute': execute,
  if (tables != null) 'tables': tables!.map((e) => e.toJson()).toList(),
};