toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'operation': operation.name,
  if (table != null) 'table': table,
  if (blueprint != null) 'blueprint': blueprint!.toJson(),
  if (dropOptions != null) 'drop': dropOptions!.toJson(),
  if (rename != null) 'rename': rename!.toJson(),
  if (sql != null) 'sql': sql,
  if (parameters.isNotEmpty) 'parameters': parameters,
  if (documentPayload != null) 'payload': documentPayload,
};