toMap method

  1. @override
Map<String, dynamic> toMap()
override

Converts this operation to a map representation for serialization.

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'type': 'createTable',
    'table': table.toMap(),
    if (ifNotExists) 'ifNotExists': true,
  };
}