toJson method
convert to json
Implementation
Map<String, dynamic> toJson() => {
'taskId': taskId,
'tableName': tableName,
'isSchemaUpdated': isSchemaUpdated,
'pendingMigrationSpaces': pendingMigrationSpaces,
'operations': operations.map((op) => op.toJson()).toList(),
'createTime': createTime.toIso8601String(),
'dirIndex': dirIndex,
'isAutoGenerated': isAutoGenerated,
'oldSchemaSnapshot': oldSchemaSnapshot?.toJson(),
};