toJson method

  1. @override
Map<String, Object?> toJson()
override

Returns a JSON representation of this.

Implementation

@override
Map<String, Object?> toJson() => {
      'runtimeType': 'SqlCreateView',
      'or-replace': orReplace,
      'materialized': materialized,
      'name': name.map((e) => e.toJson()).toList(),
      'columns': columns.map((e) => e.toJson()).toList(),
      'query': query.toJson(),
      'with-options': withOptions.map((e) => e.toJson()).toList(),
      'cluster-by': clusterBy.map((e) => e.toJson()).toList(),
    };